{include file="csmitsm/xcore/xcflow/xcform/include/xcformfields_header"/}

<el-form :model="control.form" ref="form" label-width="100px" class="form-horizontal xcflow-form" label-position="top">
    <div class="xcflow-title">{{xcform.name}}</div>
    {include file="csmitsm/xcore/xcflow/xcform/include/xcformfields" disabled="false"/}
    <div class="form-group" v-if="hasSaveOrSubmitBtn===true">
        <div class="col-xs-12 col-sm-12" style="text-align: center;">
            <a href="javascript:void(0);" @click="control_clickDelete">删除</a>
            <a class="btn btn-default btn-embossed xcflow-btn" id="saveBtn" @click="control_clickSave">保存草稿</a>
            <a class="btn btn-primary btn-embossed xcflow-btn" id="submitBtn" @click="control_clickSubmit">提交生效</a>
        </div>
    </div>
</el-form>

<div class="xcflow-block-trace" v-if="flowinstance">
    <h3>审核记录</h3>
    <div class="xc-block" v-for="item in xcflowinstancetraces">
        <div class="xc-title">{{item.title}}</div>
        <div class="xc-content">{{item.trace_submittime}} {{item.from_fstatusname}} -> {{item.target_fstatusname}}
            {{item.content}}
        </div>
    </div>
</div>
{include file="csmitsm/xcore/xcflow/xcform/include/xcformfields_footer"/}